import { reqFun } from "../../api";

const state = {
  funList:[]
};

const mutations = {
  GETFUNLIST (state, funList) {
    state.funList = funList;
  }
};

const actions = {
  async getFunList ({ commit }) {
    let result = await reqFun()
    if (result.code == 200) {
      commit('GETFUNLIST', result.rows)
    }
  }
};

const getters = {};

export default {
  state,
  mutations,
  actions,
  getters
}